package com.beyond.trace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.beyond.trace.domain.dto.warn.WarnRecordListDTO;
import com.beyond.trace.domain.warn.WarnRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName: WarnRecordMapper
 * @author: z越
 * @date: 2023/2/24  9:55
 * @description
 */
@Mapper
public interface WarnRecordMapper extends BaseMapper<WarnRecord> {
    /**
     * @author z越
     * @description 分页查询预警记录数据
     * @date 2023/2/24 14:06
     * @params query 参数
     * @returns 结果集
     */
    Page<WarnRecordListDTO> findAllPages(Page<WarnRecord> page , @Param("warnType") String warnType,
                                         @Param("deviceName") String deviceName, @Param("warnGrade") String warnGrade,
                                         @Param("startTime") String startTime, @Param("endTime") String endTime,
                                         @Param("departId") String departId);
}
